//
//  StyListSonModel.m
//  PerfectWorld
//
//  Created by dllo on 16/9/20.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "StyListSonModel.h"
#import "Projects.h"
@implementation StyListSonModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"projects"]) {
        NSMutableArray<Projects *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            Projects * projects = [Projects modelWithDic:dic];
            [array addObject:projects];
        }
        _projects = array;
    }

}

@end
